import { request } from '@umijs/max';

// 获取白名单列表
export async function getWhiteList(params?: Record<string, any>, options?: Record<string, any>) {
  return request('/api/ai_management/script/whitelist/list', {
    method: 'GET',
    params: {
      ...params,
    },
    headers: {
      isToken: false,
    },
    ...(options || {}),
  });
}

// 删除白名单
export async function deleteWhiteList(id: number) {
    return request(`/api/ai_management/script/whitelist/remove/${id}`)
  }